<?php
session_start();
include("includes/general.inc.php");
include("includes/home.inc.php");
include("includes/speakers.inc.php");
include("includes/news.inc.php");
include("includes/media.inc.php");
include("includes/login.inc.php");
include("includes/register.inc.php");
include("includes/config.inc.php");
$knownlanguages = array("English","Nederlands");
if(in_array($_GET['lang'],$knownlanguages)) {
	include("languages/".$_GET['lang'].".php");
}
else {
	include("languages/".DEFAULTLANGUAGE.".php");
}
ShowHeader();

echo "<div id='content'>";
switch (CurrentPage()) {
	case "Home":
		ShowContent();
	break;
	case "Speakers":
		ShowSpeakers();
	break;
	case "News":
		ShowNews();
	break;
	case "Subscribe":
		ShowFullPageArticle("ShowSubscriptionForm");
	break;
	case "ConfirmSubscription":
		AddSubscriber();
	break;
	case "Aboutted":
		ShowAbout();
	break;
	case "Login":
		LoginScreen();
	break;
	default:
		echo PAGENOTFOUND;
	break;
}
echo "</div>";
ShowFooter();
?>